from django.contrib import admin
from .models import GoodsInfo, ShoppingCar
# Register your models here.

class GoodsInfoAdmin(admin.ModelAdmin):
    list_display = ('name', 'id', 'type', 'price', 'unit', 'discount')

class ShoppingCarAdmin(admin.ModelAdmin):
    list_display = ('name', 'count', 'type', 'price', 'subtotal', 'discount')

admin.site.register(GoodsInfo, GoodsInfoAdmin)
admin.site.register(ShoppingCar, ShoppingCarAdmin)